package com.ruoyi.caigou.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 采购比较的商品详情对象 finer_buy_compare_price_goods
 *
 * @author lvql
 * @date 2024-11-02
 */
public class BuyComparePriceGoods extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Integer id;

    /**
     * 采购比价单据编号
     */
    @Excel(name = "采购比价单据编号")
    private String comparePriceCode;

    private String sourceCode;
    /**
     * 供应商id
     */
    @Excel(name = "供应商id")
    private Integer supId;


    /**
     * 商品id
     */
    @Excel(name = "商品id")
    private Integer goodsId;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private Integer number;

    /**
     * 单价
     */
    @Excel(name = "单价")
    private BigDecimal price;

    /**
     * 税率
     */
    @Excel(name = "税率")
    private Double tax;

    /**
     * 排名
     */
    @Excel(name = "排名")
    private Integer compareSort;
    //供应商名
    private String supName;
    //单位名称
    private String unitName;
    //类型名
    private String typeName;
    //商品名称
    private String proName;

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getSupName() {
        return supName;
    }

    public void setSupName(String supName) {
        this.supName = supName;
    }

    public String getSourceCode() {
        return sourceCode;
    }

    public void setSourceCode(String sourceCode) {
        this.sourceCode = sourceCode;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setComparePriceCode(String comparePriceCode) {
        this.comparePriceCode = comparePriceCode;
    }

    public String getComparePriceCode() {
        return comparePriceCode;
    }

    public void setSupId(Integer supId) {
        this.supId = supId;
    }

    public Integer getSupId() {
        return supId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getNumber() {
        return number;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setTax(Double tax) {
        this.tax = tax;
    }

    public Double getTax() {
        return tax;
    }

    public void setCompareSort(Integer compareSort) {
        this.compareSort = compareSort;
    }

    public Integer getCompareSort() {
        return compareSort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("comparePriceCode", getComparePriceCode())
                .append("supId", getSupId())
                .append("goodsId", getGoodsId())
                .append("number", getNumber())
                .append("price", getPrice())
                .append("tax", getTax())
                .append("compareSort", getCompareSort())
                .toString();
    }
}
